//
import request from "@/utils/request.js";


//历史记录
export const trainPage = (data) => {
	let option = {
		method: "post",
		loading: true,
	};
	return request('/api/student/train/history/page', data, option)
}

//我的
export const studentDetail = (data) => {
	let option = {
		method: "get",
		loading: true,
	};
	return request('/api/student', data, option)
}

//获取练习模式
export const modelInfo = (data) => {
	let option = {
		method: "get",
		loading: true,
	};
	return request('/api/train/practise/model', data, option)
}

//上次培训信息
export const trainLastInfo = (typeCode) => {
	let option = {
		method: "get",
		loading: true,
	};
	return request('/api/train/last/' + typeCode, {}, option)
}
//上次培训信息
export const trainBankInfo = (typeCode) => {
	let option = {
		method: "get",
		loading: true,
	};
	return request('/api/train/practise/bank', {}, option)
}
//科目信息
export const courseInfo = (data) => {
	let option = {
		method: "get",
		loading: true,
	};
	return request('/api/train/course', data, option)
}